-- GENERATED SPELL FOR [Ghostly Marauder] --


function spell0_11687(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11687', 569, 1)
end

function Sorts_11687(pUnit, Event)
local choix_sorts_11687 = math.random(0, 0)
if choix_sorts_11687 == 0 then
pUnit:RegisterEvent('spell0_11687', 1, 1)
end
end

function mob11687_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11687', math.random(1500, 3000), 1)
end

function mob11687_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11687_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11687_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11687, 1, 'mob11687_Action')
RegisterUnitEvent(11687, 2, 'mob11687_Leave')
RegisterUnitEvent(11687, 3, 'mob11687_Kill')
RegisterUnitEvent(11687, 4, 'mob11687_Die')
